function Super(_name) {
  this.SuperName = _name
}
Super.prototype.saySuperHello = function () {
  console.log("hello It's Super");
}

function Sub(SuperName, SubName) {
  this.SubName = SubName
  Super.call(this, SuperName)
}
Sub.prototype = Object.create(Super.prototype)

Sub.prototype.saySubHello = function () {
  console.log("hello It's Sub");
}
Sub.prototype.constructor = Sub

let s = new Sub('father', 'son')
s.saySubHello()
s.saySuperHello()
console.log(s.SubName, s.SuperName);
console.log(s.constructor);